package com.accp.hotevent.dao;


import com.accp.hotevent.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {

    void add(User user);

    void update(User user);

    User login(@Param("email") String email,
               @Param("password") String password);

    User getById(Integer id);

    List<User> getList(User user);
}
